package com.yyl.fmall.user.exception;

import lombok.Data;

/**
 * @BelongsProject: rbacs
 * @BelongsPackage: com.yyl.rbacs.exception
 * @Author: YuanSir
 * @CreateTime: 2022-11-01  10:34
 * @Description:
 * @Version: 1.0
 */

@Data
public class IllegalCharacterException extends RuntimeException {
    private String msg;
    private int code = 500;
    
    public IllegalCharacterException(String msg) {
        super(msg);
        this.msg = msg;
    }
    
    public IllegalCharacterException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }
    
    public IllegalCharacterException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }
    
    public IllegalCharacterException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }
    
}
